package com.crnn.smart.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

@RestController
public class LoginController {

    @GetMapping("/login")
    public ModelAndView getLogin(HttpServletRequest request){
        ModelAndView model = new ModelAndView();
        model.setViewName("login");
        return model;
    }

}
